<template>
  <el-dialog
    top="30px"
    width="900px"
    title="开票详情"
    append-to-body
    :close-on-click-modal="false"
    :visible.sync="visible"
    :before-close="beforeClose"
  >
    <info-view v-bind="$attrs" @close="beforeClose" @success="handlerSuccess"></info-view>
  </el-dialog>
</template>

<script>
import InfoView from '@/bigcredit/views/letter/pay/invoice/Index'
export default {
  components: { InfoView },
  props: {
    visible: Boolean,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handlerSuccess() {
      this.$emit('success', true)
    },
  },
}
</script>

<style lang="scss" scoped></style>
